import request from '@/plugins/request'
export function getRightsList () {
  return request({
    url: '/rights/list',
    method: 'get'
  })
}
export function removeRight (params) {
  return request({
    url: `roles/${params.roleId}/rights/${params.rightId}`,
    method: 'delete'
  })
}
export function getRightsListTree () {
  return request({
    url: '/rights/tree',
    method: 'get'
  })
}
